using System.Collections.ObjectModel;
using System.Windows;

namespace Ribbon
{
	public class RabSplitButton : RabButton
	{
		public static readonly DependencyProperty MenuItemsProperty;

		public ObservableCollection<object> MenuItems
		{
			get
			{
				return (ObservableCollection<object>)GetValue(MenuItemsProperty);
			}
			set
			{
				SetValue(MenuItemsProperty, value);
			}
		}

		static RabSplitButton()
		{
			MenuItemsProperty = DependencyProperty.Register("MenuItems", typeof(ObservableCollection<object>), typeof(RabSplitButton), new PropertyMetadata(null));
			FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(RabSplitButton), new FrameworkPropertyMetadata(typeof(RabSplitButton)));
		}

		public RabSplitButton()
		{
			MenuItems = new ObservableCollection<object>();
		}

		public override void OnApplyTemplate()
		{
			base.OnApplyTemplate();
		}
	}
}
